package com.guiji.quartz.task;

import cn.wanghaomiao.xpath.exception.NoSuchAxisException;
import cn.wanghaomiao.xpath.exception.NoSuchFunctionException;
import cn.wanghaomiao.xpath.exception.XpathSyntaxErrorException;
import com.guiji.quartz.domain.XinhuaEnglishSport;
import com.guiji.quartz.domain.XinhuaEnglishWorld;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @create: 2021-09-06 17:44
 **/
@Component("xinhuaEnglishWorldTask")
public class XinhuaEnglishWorldTask {
	private static final Logger log = LoggerFactory.getLogger(XinhuaEnglishWorldTask.class);
	public void xinhuaEnglishWorldTask() throws NoSuchFunctionException, XpathSyntaxErrorException, NoSuchAxisException {
		Long startTime = System.currentTimeMillis();
		XinhuaEnglishWorld xinhuaEnglishWorld = new XinhuaEnglishWorld();
		try {
			xinhuaEnglishWorld.mainMethod();
		} catch (NoSuchFunctionException e) {
		}finally {
			log.info("xinhuaEnglishWorldTask-end-:{}",System.currentTimeMillis()-startTime);
		}

	}
}
